Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#16165: Add binary SFPU divide init function #16250

Merged
merged 3 commits into from
Jan 2, 2025
Merged

Conversation

rdjogoTT
Copy link
Contributor

@rdjogoTT rdjogoTT commented Dec 21, 2024

Ticket

Link to Github Issue

Problem description

Binary SFPU OP divide requires init call.

Checklist

@rdjogoTT rdjogoTT self-assigned this Dec 21, 2024
@rdjogoTT rdjogoTT force-pushed the rd/binary_sfpu_div_init branch from 42e4ea1 to 2c7e9ad Compare December 21, 2024 14:29
ALWI void eltwise_binop_tile_init() { MATH((llk_math_eltwise_binary_sfpu_binop_init<APPROX>())); }
ALWI void add_binary_tile_init() { MATH((llk_math_eltwise_binary_sfpu_binop_init<APPROX, ADD_BINARY>())); }

ALWI void sub_binary_tile_init() { MATH((llk_math_eltwise_binary_sfpu_binop_init<APPROX, SUB_BINARY>())); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So each binary op is potentially a different init.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please give the enum a name, make it an enum class, and use that as the template parameter type instead of int?

Copy link
Contributor Author

@rdjogoTT rdjogoTT Dec 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes each op needs to be able to have a different init. And ok I have changed this to enum class

@rdjogoTT rdjogoTT force-pushed the rd/binary_sfpu_div_init branch from 2c7e9ad to 8cf1b15 Compare December 30, 2024 22:27
@rdjogoTT rdjogoTT marked this pull request as ready for review January 2, 2025 14:39
@rdjogoTT rdjogoTT force-pushed the rd/binary_sfpu_div_init branch from 8cf1b15 to f98f708 Compare January 2, 2025 16:45
@rdjogoTT rdjogoTT merged commit df883fa into main Jan 2, 2025
9 checks passed
@rdjogoTT rdjogoTT deleted the rd/binary_sfpu_div_init branch January 2, 2025 16:50
mmanzoorTT added a commit to tenstorrent/tt-torch that referenced this pull request Jan 6, 2025
mmanzoorTT added a commit to tenstorrent/tt-torch that referenced this pull request Jan 6, 2025
mmanzoorTT added a commit to tenstorrent/tt-torch that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants